package com.bawei.hgshop.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.bawei.hgshop.entity.User;

public interface UserMapper {
	

	//注册
	@Insert("insert into hg_user(username,password,name,telephone) values(#{username},#{password},#{name},#{telephone})")
	int insert(User user);

	@Select("select * from hg_user where username=#{username} and password=#{password}")
	User findUserBypwd(User user);

}
